<?php

namespace app\api\validate;

use think\Validate;

class Destination extends Validate
{
    //对于输入的目的站名的拼音编码进行验证
    //
    //验证规则
        protected $rule=[

            'pybm'=>'require|alpha|length:3',


        ];
     //验证提示错误
       protected $message=[

       		'pybm.require'=>'不能为空',
            'pybm.alpha'=>'必须输入字母',
            'pybm.length'=>'输入长度为3',

        ];

}